<template>
  <div class="flex-1">
    <input type="password" class="yp-input" :value="modelValue" @input="updateVal" :placeholder="col.tips">
  </div>
</template>
  <script setup name="NYpinput">
const props = defineProps({
  modelValue: {
    default: ''
  },
  placeholder: {
    type: String
  },
  col: Object
})
const emit = defineEmits(['update:modelValue'])
const updateVal = (e) => {
  const targetVal = e.target.value
  emit('update:modelValue', targetVal)
}
</script>
